package org.smartcti.freeswitch.inbound;

import org.smartcti.freeswitch.inbound.internal.InboundConnectionImpl;


public class InboundConnectionFactory {
	 private static final int DEFAULT_PORT = 8021;
	 private final String hostname;
	 private final int port;
	 private final String password;
	 
	 
	public InboundConnectionFactory(String hostname, int port, String password) {
		super();
		this.hostname = hostname;
		this.port = port;
		this.password = password;
	}
	
	public InboundConnectionFactory(String hostname, String password) {
		super();
		this.hostname = hostname;
		this.port = DEFAULT_PORT;
		this.password = password;
	}
	
	
	 public InboundConnection createInboundConnection()
	    {
	        return new InboundConnectionImpl(hostname, port,  password);
	    }
	 
	 

}
